Xbasic

UI_DLG_REMEMBERED_GET Function

Syntax

Result as C = UI_DLG_REMEMBERED_GET(C title[,C format])

Arguments

Result

A character string with seven comma delimited fields:

Field 1 =
Field 2 = Horizontal coordinate
Field 3 = Vertical coordinate
Field 4 = Width
Field 5 = Height
Field 6 =
Field 7 =
title

The name of the dialog box.

format

Character

Description

Retrieve any remembered alignment/size/position data.

Discussion

The UI_DLG_REMEMBERED_GET() function retrieves alignment, size, and position data for a dialog box from the HKEY_CURRENT_USER\Software\Alpha Software\Alpha Anywhere 12.0\{xdialog_key} in the system registry.

Example

This example runs a dialog and then asks what its settings were.

ui_dlg_box("Sticky",<<%dlg%
{position=remember=sticky}
{size=remember=sticky}
This is a sticky dialog | ;
{stretch=center}
[.30,10dummy]
%dlg%)
? ui_dlg_remembered_get("sticky")
= " ,0.78125,2.666667,2.510417,2.427083,0,0"

Limitations

Desktop applications only.

See Also